package com.shuimin.as.model.sys;

import pond.common.Convert;
import pond.common.S;
import pond.db.Model;

/**
 * Created by sky on 15/12/24.
 */
public class Shop extends Model {

  public static final String HEAD_SHOP = "head_leader_shop";

  public static final int TYPE_NORMAL = 0;
  public static final int TYPE_FORMULA_ONE =1;
  public static final int TYPE_FORMULA_TWO =2;
  public static final int TYPE_MANAGE = 9;

  {
    table("t_shop");
    id("id");
    field("name");
    field("full_name");
    field("brands");//门店所拥有的车辆品牌s,example:['大众','别克','雪弗兰']
    field("desc");
    field("type");
    field("sn");
    field("seq");
  }

  public int type() {
    return S.avoidNull(Convert.toInt(this.get("type")), TYPE_NORMAL);
  }

}
